How to handle aggregated query results with SQLAlchemy pydantic and FastAPI

visit shbcf.ru